NotaFiscal={
service : [], //only use ajax if the order isnt in this array
		
getNotaFiscal : function(orderId){

	if( this.callToService(orderId)){
	var parameters = {};
	
	parameters.storeId = '12251';
	parameters.catalogId = '10001';
	parameters.langId = '-1';
	
	parameters.orderId= orderId;
	
		dojo.xhrPost({
		    url: 'NotaFiscalFormDisplayView',
		    content: parameters,
		    service: this,
		    load: function(data){
		    	dojo.byId('segundaViaFiscal-'+orderId).innerHTML = data;
				dojo.toggleClass(dojo.query('#toggle2-'+orderId)[0], 'open');
				NotaFiscal.service.push(orderId);
		  	},
		    error: function(errObj,ioArgs) {
				alert(errObj);
		    }
		});
	}else{
		dojo.toggleClass(dojo.query('#toggle2-'+orderId)[0], 'open');
	}
},

callToService : function (orderId){	

	for (var i=0;i<this.service.length;i++)
	{
		if (this.service[i] == orderId){
			return false;
		}
	}
	return true;
}
}